package com.yanqu.road.ns0;

import com.yanqu.road.ak13.YanQuWSEncrypt0;

import io.netty.handler.codec.http.websocketx.WebSocketFrameDecoder;
import io.netty.handler.codec.http.websocketx.WebSocketFrameEncoder;
import io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker00;

public class YanQuWSH0 extends WebSocketServerHandshaker00 {

	public YanQuWSH0(String webSocketURL, String subprotocols, int maxFramePayloadLength) {
		super(webSocketURL, subprotocols, maxFramePayloadLength);
	}

	@Override
	protected WebSocketFrameDecoder newWebsocketDecoder() {
		return new YanQuWSDecipher0(maxFramePayloadLength());
	}

	@Override
	protected WebSocketFrameEncoder newWebSocketEncoder() {
		return new YanQuWSEncrypt0();
	}
}
